package com.aerospace.serviceprovider.quartz;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

import java.util.Date;

public class Quartz extends QuartzJobBean {
    /*
    * 执行定时任务
    * @param JobExecutionContext
    * @throws JobExecutionException
    *
    * */
    @Override
    protected void executeInternal(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        System.out.println("quartz task" + new Date());
    }
}
